home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 268 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: fontainebleau.ensmp.fr!idefix!salignac
  2. From: salignac@cig.ensmp.fr
  3. Newsgroups: comp.lang.c++,comp.lang.fortran
  4. Subject: coupling c++ code with fortran
  5. Date: 3 Jan 1996 13:38:33 GMT
  6. Organization: Ecole Nationale Superieure des Mines de Paris
  7. Sender: salignac@idefix (Anne Lise SALIGNAC <salignac@cig.ensmp.fr>)
  8. Distribution: world
  9. Message-ID: <4ce0sp$ddv@fontainebleau.ensmp.fr>
  10. NNTP-Posting-Host: idefix
  11.  
  12. Hello !
  13.  
  14. I'm trying to call a C++ subroutine in a Fortran 77 code.
  15. The compilation fails while linking: it seems impossible
  16. for the fortran compiler/linker to recognize the C++ function.
  17. In plain C, the problem is easily solved by adding underscores 
  18. at the start of the C-function name, but this is clearly
  19. different for C++....
  20.  
  21. Does anyone know which syntax is recognized by both compilers?
  22. Are there examples available ?
  23.  
  24. I currently use the gnu-C++ compiler (v.2.7.0) and the standard
  25. Unix f77 compiler. Trials with the gnu-f77 compiler failed
  26. for the same reason.
  27. Answers by e-mail would be most appreciated.
  28.  
  29. Best wishes.
  30.  
  31. AnneLise. (salignac@cig.ensmp.fr)
  32.